﻿<UserControl x:Class="Hopscotch.Presentation.Controls.Views.BusyView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Hopscotch.Presentation.Controls.Views"
             mc:Ignorable="d" 

             x:Name="BusyControl"
             d:DesignHeight="200" d:DesignWidth="300">

    <Grid Background="#44000000"
              HorizontalAlignment="Stretch"
              VerticalAlignment="Stretch" >
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Border Grid.Row="1" Grid.Column="1"
                BorderThickness="1" CornerRadius="2" >
            <StackPanel Background="LightGray">
                <TextBlock Text="{Binding Path=BusyMessage, ElementName=BusyControl, TargetNullValue=Busy..., FallbackValue=Busy...}" Margin="8,2,8,2" />
                <ProgressBar MinHeight="10" Margin="8,4,8,8" 
                             IsIndeterminate="True">
                </ProgressBar>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
